package com.platform.module.common.base;

import lombok.EqualsAndHashCode;
import lombok.ToString;

@ToString
@EqualsAndHashCode
public class BaseReq implements Cloneable {
    private Long userId;
    private Integer type = 0;
    private Integer currentPage = 1;
    private Integer pageSize = 10;
    private String ip;
    private String ipv6;
    private String mobileNo;
    private String accessToken;
    private String signMD5;
    private Long curTime;
    private String appId;
    private String language;
    private String appInstanceId;
    private App app = new App();
    private String ic;
    private String agentParam;
    // 通过请求参数传 uuid，而不是放在 app 里面的 header
    private String uuid;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public boolean isLogin() {
        return this.userId != null;
    }

    public Long getUserId() {
        return this.userId;
    }

    public Integer getType() {
        return this.type;
    }

    public Integer getCurrentPage() {
        return this.currentPage;
    }

    public Integer getPageSize() {
        return this.pageSize;
    }

    public String getIp() {
        return this.ip;
    }

    public String getIpv6() {
        return this.ipv6;
    }

    public String getMobileNo() {
        return this.mobileNo;
    }

    public String getAccessToken() {
        return this.accessToken;
    }

    public String getSignMD5() {
        return this.signMD5;
    }

    public Long getCurTime() {
        return this.curTime;
    }

    public String getAppId() {
        return this.appId;
    }

    public String getLanguage() {
        return this.language;
    }

    public String getAppInstanceId() {
        return this.appInstanceId;
    }

    public App getApp() {
        return this.app;
    }

    public String getIc() {
        return this.ic;
    }

    public String getAgentParam() {
        return this.agentParam;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public void setIpv6(String ipv6) {
        this.ipv6 = ipv6;
    }

    public void setMobileNo(String mobileNo) {
        this.mobileNo = mobileNo;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public void setSignMD5(String signMD5) {
        this.signMD5 = signMD5;
    }

    public void setCurTime(Long curTime) {
        this.curTime = curTime;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public void setAppInstanceId(String appInstanceId) {
        this.appInstanceId = appInstanceId;
    }

    public void setApp(App app) {
        this.app = app;
    }

    public void setIc(String ic) {
        this.ic = ic;
    }

    public void setAgentParam(String agentParam) {
        this.agentParam = agentParam;
    }

}
